package com.oolee.cloud.service;

import com.oolee.cloud.entity.Payment;
import com.oolee.cloud.general.GeneralResult;
import org.springframework.stereotype.Component;

@Component
public class FeignServiceFallback implements FeignService{
    @Override
    public GeneralResult<Payment> getPaymentById(Long id) {
        return GeneralResult.fail();
    }

    @Override
    public String TimeOutShow() {
        return "globalFallback --> o(╥﹏╥)o ";
    }

    @Override
    public String requestExceptionService() {
        return "globalFallback --> o(╥﹏╥)o 请求异常,请稍后重试";
    }
}
